package com.freight.user.service;

import com.freight.core.base.FreightBaseService;
import com.freight.core.common.vo.SearchVo;
import com.freight.file.vo.CompanyPicFileVo;
import com.freight.user.dto.CompanyLicenseDto;
import com.freight.user.entity.CompanyLicense;
import com.freight.user.vo.CompanyEnterpriseVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

/**
 * 营业资格证接口
 * @author huyingtai
 */
public interface CompanyLicenseService extends FreightBaseService<CompanyLicense, Long> {

    CompanyEnterpriseVo getCompanyEnterprise(Long userId);

    Page<CompanyLicense> findByCondition(CompanyLicense companyLicense, SearchVo searchVo, Pageable pageable);

    String saveCompanyLicenseInfo(CompanyLicenseDto companyLicenseDto);

    CompanyPicFileVo upLoadCompanyLicense(MultipartFile file, String fileType);
    /**
     *
     * @return
     */
    CompanyLicense getCompanyLicenseInfo(Long userId);
}